package com.seven.controller;

import com.github.netty.core.util.LoggerFactoryX;
import com.github.netty.core.util.LoggerX;
import io.netty.buffer.Unpooled;
import io.netty.handler.codec.http.DefaultFullHttpRequest;
import io.netty.handler.codec.http.HttpMethod;
import io.netty.handler.codec.http.HttpVersion;
import io.netty.handler.logging.LogLevel;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author Yinwenjie
 */
@RestController
@RequestMapping("/server")
public class UploadController {

    private static final AtomicInteger ATOMIC_INTEGER = new AtomicInteger(0);

    @GetMapping("test")
    public void test(String name) {
        System.out.println("======>" + name);
        System.out.println(ATOMIC_INTEGER.incrementAndGet());
    }
}
